package com.pms.service;

import java.util.List;

import com.pms.dao.UserDao;
import com.pms.entity.Users;

	/**
	 * @author handy
	 *2013-03-11
	 */

public class UserService {
		
	UserDao userDao = new UserDao();
	public Users findByNameAndPwd(String name, String pwd){
		return userDao.findByNameAndPassword(name, pwd);
	}
	
	public Users findById(String id){
		return userDao.findById(id);
	}

	public List<Users> findAllUsers() {
		return userDao.findAllUsers();
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}
